<template>
	<view class="content with-tabbar pb-150">
		<div>
			<div class="fontS48 font-bold mt-40">创建您的账户</div>
			<div class="mt-20 fontS28 color-6d lh-40">
				请填写您的企业信息以确保真实有效的交易，我们将根据隐私保护政策确保你的企业信息安全。
			</div>
			<div>
				<div class="mt-40 fontS28 font-weight"><span class="color-red">*</span>真实姓名</div>
				<div class="mt-20 inputBox">
					<input v-model="postForm.realName" type="text" placeholder="请输入真实姓名"></input>
				</div>
			</div>
			<div>
				<div class="mt-25 fontS28 font-weight"><span class="color-red">*</span>身份证号</div>
				<div class="mt-20 inputBox">
					<input v-model="postForm.cardNo" type="text" placeholder="请输入身份证号"></input>
				</div>
			</div>
			<!-- <div>
				<div class="mt-25 fontS28 font-weight"><span class="color-red">*</span>密码</div>
				<div class="mt-20 inputBox">
					<input v-model="postForm.password" password type="password" placeholder="请输入密码"></input>
				</div>
			</div>
			<div>
				<div class="mt-25 fontS28 font-weight">邀请码</div>
				<div class="mt-20 inputBox">
					<input v-model="postForm.invitationCode" type="text" placeholder="请输入邀请码"></input>
				</div>
			</div> -->

		</div>

		<div class="bottom">


			<div class="submitBtn fontS26" @click="submit">提交
			</div>

		</div>



	</view>
</template>

<script>
import { perApply } from '@/api/auth'
export default {
	computed: {
		userInfo() {
			return this.$store.getters.userInfo || {};
		},
	},
	data() {
		return {
			postForm: {
				cardNo: '',
				channel: 1,
				invitationCode: '',


				realName: '',
				username: ''
			}
		}
	},
	async onLoad(options) {

		this.postForm.username = this.userInfo.phonenumber
	},

	methods: {

		async submit() {
			const { data } = await perApply(this.postForm)
			uni.navigateBack({
				delta: 1
			})
		},


	}
}
</script>

<style lang="less" scoped>
.content {
	display: flex;
	flex-direction: column;
	background: #fff;
	padding: 20upx;
	// text-align: center;
	height: 100vh;
	overflow: hidden;

}

.inputBox {
	width: 100%;
	height: 100upx;
	line-height: 100upx;
	background: #f7f8f7;
	border-radius: 100upx;
	padding: 0 35upx;

	input {
		width: 100%;
		height: 100upx;
		line-height: 100upx;
	}
}

.color-0d0 {
	color: #0D0D12;
}
</style>